package com.shd.edanpei.view;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import android.support.v4.widget.SwipeRefreshLayout;
import android.util.AttributeSet;

import com.shd.edanpei.R;

/**
 * Created by mc on 2018/10/19.
 * yang-wen-wen
 */

public class RefreshLayout extends SwipeRefreshLayout {

    public RefreshLayout(@NonNull Context context) {
        super(context);
        initView();
    }

    public RefreshLayout(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        initView();
    }

    private void initView() {
        setColorSchemeColors(ContextCompat.getColor(getContext(), R.color.main_color));

    }
}
